public class Teacher {
    private String id;
    private String name;
    private String gender;
    private Course taughtCourse;

    public Teacher(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public void setTaughtCourse(Course taughtCourse) {
        this.taughtCourse = taughtCourse;
    }

    public Course getTaughtCourse() {
        return taughtCourse;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }
}